package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.motong.gongdan.vo.system.otherVo.CustomFieldVo;
import com.motong.gongdan.vo.resp.WOProcessListResp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * @author lsw
 * @time 2022/5/26 11:28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "form_table_detail")
@Accessors(chain = true)
public class FormTableDetail extends PublicPo {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "form_table_code")
    private String ftCode;
    @TableField(value = "product_id")
    private Integer productId;
    @TableField(value = "work_order_code")
    private String workOrderCode;
    @TableField(value = "handle_number")
    private BigDecimal handleNumber;
    @TableField("level_code")
    private BigDecimal levelCode;
    @TableField("unit_use")
    private BigDecimal unitUse;


    @TableField(exist = false)
    private String productName;
    @TableField(exist = false)
    private String productCode;
    @TableField(exist = false)
    private String specification;
    @TableField(exist = false)
    private String unit;
    @TableField(exist = false)
    private Integer attribute;
    @TableField(exist = false)
    private Integer state;
    @TableField(exist = false)
    private List<WOProcessListResp> list;
    @TableField(exist = false)
    private BigDecimal badProduct;
    @TableField(exist = false)
    private BigDecimal finishNum;
    @TableField(exist = false)
    private List<CustomFieldVo> customFieldVos;
    @TableField(exist = false)
    private Date startTime;
    @TableField(exist = false)
    private Date endTime;
    @TableField(exist = false)
    private Integer workOrderId;
    @TableField(exist = false)
    @ApiModelProperty(value = "工单数量")
    private Integer workOrderNum;
    @TableField(exist = false)
    @ApiModelProperty(value = "计划总量")
    private BigDecimal totalPlanNum;
}
